home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows (5th Edition) / Programming Windows, 5th ed. - Companion CD (097-0002183)(1999).iso / Chap13 / Print1 / Print1.mak < prev   
Encoding:
Text File  |  1998-10-09  |  4.3 KB  |  174 lines

  1. # Microsoft Developer Studio Generated NMAKE File, Based on Print1.dsp
  2. !IF "$(CFG)" == ""
  3. CFG=Print1 - Win32 Debug
  4. !MESSAGE No configuration specified. Defaulting to Print1 - Win32 Debug.
  5. !ENDIF 
  6.  
  7. !IF "$(CFG)" != "Print1 - Win32 Release" && "$(CFG)" != "Print1 - Win32 Debug"
  8. !MESSAGE Invalid configuration "$(CFG)" specified.
  9. !MESSAGE You can specify a configuration when running NMAKE
  10. !MESSAGE by defining the macro CFG on the command line. For example:
  11. !MESSAGE 
  12. !MESSAGE NMAKE /f "Print1.mak" CFG="Print1 - Win32 Debug"
  13. !MESSAGE 
  14. !MESSAGE Possible choices for configuration are:
  15. !MESSAGE 
  16. !MESSAGE "Print1 - Win32 Release" (based on "Win32 (x86) Application")
  17. !MESSAGE "Print1 - Win32 Debug" (based on "Win32 (x86) Application")
  18. !MESSAGE 
  19. !ERROR An invalid configuration is specified.
  20. !ENDIF 
  21.  
  22. !IF "$(OS)" == "Windows_NT"
  23. NULL=
  24. !ELSE 
  25. NULL=nul
  26. !ENDIF 
  27.  
  28. CPP=cl.exe
  29. MTL=midl.exe
  30. RSC=rc.exe
  31.  
  32. !IF  "$(CFG)" == "Print1 - Win32 Release"
  33.  
  34. OUTDIR=.\Release
  35. INTDIR=.\Release
  36. # Begin Custom Macros
  37. OutDir=.\Release
  38. # End Custom Macros
  39.  
  40. ALL : "$(OUTDIR)\Print1.exe"
  41.  
  42.  
  43. CLEAN :
  44.     -@erase "$(INTDIR)\GetPrnDC.obj"
  45.     -@erase "$(INTDIR)\Print.obj"
  46.     -@erase "$(INTDIR)\Print1.obj"
  47.     -@erase "$(INTDIR)\vc60.idb"
  48.     -@erase "$(OUTDIR)\Print1.exe"
  49.  
  50. "$(OUTDIR)" :
  51.     if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  52.  
  53. CPP_PROJ=/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /Fp"$(INTDIR)\Print1.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c 
  54. MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32 
  55. BSC32=bscmake.exe
  56. BSC32_FLAGS=/nologo /o"$(OUTDIR)\Print1.bsc" 
  57. BSC32_SBRS= \
  58.     
  59. LINK32=link.exe
  60. LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /incremental:no /pdb:"$(OUTDIR)\Print1.pdb" /machine:I386 /out:"$(OUTDIR)\Print1.exe" 
  61. LINK32_OBJS= \
  62.     "$(INTDIR)\GetPrnDC.obj" \
  63.     "$(INTDIR)\Print.obj" \
  64.     "$(INTDIR)\Print1.obj"
  65.  
  66. "$(OUTDIR)\Print1.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  67.     $(LINK32) @<<
  68.   $(LINK32_FLAGS) $(LINK32_OBJS)
  69. <<
  70.  
  71. !ELSEIF  "$(CFG)" == "Print1 - Win32 Debug"
  72.  
  73. OUTDIR=.\Debug
  74. INTDIR=.\Debug
  75. # Begin Custom Macros
  76. OutDir=.\Debug
  77. # End Custom Macros
  78.  
  79. ALL : "$(OUTDIR)\Print1.exe"
  80.  
  81.  
  82. CLEAN :
  83.     -@erase "$(INTDIR)\GetPrnDC.obj"
  84.     -@erase "$(INTDIR)\Print.obj"
  85.     -@erase "$(INTDIR)\Print1.obj"
  86.     -@erase "$(INTDIR)\vc60.idb"
  87.     -@erase "$(INTDIR)\vc60.pdb"
  88.     -@erase "$(OUTDIR)\Print1.exe"
  89.     -@erase "$(OUTDIR)\Print1.ilk"
  90.     -@erase "$(OUTDIR)\Print1.pdb"
  91.  
  92. "$(OUTDIR)" :
  93.     if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
  94.  
  95. CPP_PROJ=/nologo /MLd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "UNICODE" /Fp"$(INTDIR)\Print1.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c 
  96. MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32 
  97. BSC32=bscmake.exe
  98. BSC32_FLAGS=/nologo /o"$(OUTDIR)\Print1.bsc" 
  99. BSC32_SBRS= \
  100.     
  101. LINK32=link.exe
  102. LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /incremental:yes /pdb:"$(OUTDIR)\Print1.pdb" /debug /machine:I386 /out:"$(OUTDIR)\Print1.exe" /pdbtype:sept 
  103. LINK32_OBJS= \
  104.     "$(INTDIR)\GetPrnDC.obj" \
  105.     "$(INTDIR)\Print.obj" \
  106.     "$(INTDIR)\Print1.obj"
  107.  
  108. "$(OUTDIR)\Print1.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
  109.     $(LINK32) @<<
  110.   $(LINK32_FLAGS) $(LINK32_OBJS)
  111. <<
  112.  
  113. !ENDIF 
  114.  
  115. .c{$(INTDIR)}.obj::
  116.    $(CPP) @<<
  117.    $(CPP_PROJ) $< 
  118. <<
  119.  
  120. .cpp{$(INTDIR)}.obj::
  121.    $(CPP) @<<
  122.    $(CPP_PROJ) $< 
  123. <<
  124.  
  125. .cxx{$(INTDIR)}.obj::
  126.    $(CPP) @<<
  127.    $(CPP_PROJ) $< 
  128. <<
  129.  
  130. .c{$(INTDIR)}.sbr::
  131.    $(CPP) @<<
  132.    $(CPP_PROJ) $< 
  133. <<
  134.  
  135. .cpp{$(INTDIR)}.sbr::
  136.    $(CPP) @<<
  137.    $(CPP_PROJ) $< 
  138. <<
  139.  
  140. .cxx{$(INTDIR)}.sbr::
  141.    $(CPP) @<<
  142.    $(CPP_PROJ) $< 
  143. <<
  144.  
  145.  
  146. !IF "$(NO_EXTERNAL_DEPS)" != "1"
  147. !IF EXISTS("Print1.dep")
  148. !INCLUDE "Print1.dep"
  149. !ELSE 
  150. !MESSAGE Warning: cannot find "Print1.dep"
  151. !ENDIF 
  152. !ENDIF 
  153.  
  154.  
  155. !IF "$(CFG)" == "Print1 - Win32 Release" || "$(CFG)" == "Print1 - Win32 Debug"
  156. SOURCE=.\GetPrnDC.c
  157.  
  158. "$(INTDIR)\GetPrnDC.obj" : $(SOURCE) "$(INTDIR)"
  159.  
  160.  
  161. SOURCE=.\Print.c
  162.  
  163. "$(INTDIR)\Print.obj" : $(SOURCE) "$(INTDIR)"
  164.  
  165.  
  166. SOURCE=.\Print1.c
  167.  
  168. "$(INTDIR)\Print1.obj" : $(SOURCE) "$(INTDIR)"
  169.  
  170.  
  171.  
  172. !ENDIF 
  173.  
  174.